package com.acquisition.service.impl;

import com.acquisition.entity.RealTimeData;
import com.acquisition.mapper.RealTimeDataMapper;
import com.acquisition.service.RealTimeDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 实时数据
 * 业务逻辑层实现
 * @author wang
 * @date 2023-04-18 20:42
 */
@Service
public class RealTimeDataServiceImpl implements RealTimeDataService {
    @Resource
    private RealTimeDataMapper realTimeDataMapper;

    @Override
    public int save(RealTimeData realTimeData) {
        return realTimeDataMapper.save(realTimeData);
    }

    @Override
    public int remove(int id) {
        return 0;
    }

    @Override
    public int update(RealTimeData realTimeData) {
        return realTimeDataMapper.update(realTimeData);
    }

    @Override
    public RealTimeData get(int id) {
        return realTimeDataMapper.get(id);
    }

    @Override
    public List<RealTimeData> queryByExample(Map<String, Object> param) {
        return realTimeDataMapper.queryByExample(param);
    }

    @Override
    public int count(Map<String, Object> param) {
        return realTimeDataMapper.count(param);
    }

    @Override
    public List<RealTimeData> queryDataOfUpload(int serverNum) {
        return null;
    }

    @Override
    public int remove(Long time) {
        return 0;
    }

    @Override
    public int removeAll() {
        return 0;
    }

    @Override
    public int updateFlag(int serverNum, int id) {
        return 0;
    }

    @Override
    public int updateQn(String qn, int id) {
        return 0;
    }
}
